package com.qd.common.panda.domain.entity.stroke.mystroke;

import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户充电
 *
 * @author sjk
 * @create 2022-09-26 11:37
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
public class UserChargeStrokeVO {
    /**
     * 订单ID
     */
    private String orderId;
    /**
     * 充电量
     */
    private BigDecimal chargeCapacity;
    /**
     * 充电量显示
     */
    private String chargeCapacityDisplay;
    /**
     * 订单状态:充电订单状态:1：启动中,2：充电中,3：停止中,4：已结束,5：未知
     */
    private Integer state;
    /**
     * 订单状态显示
     */
    private String stateDisplay;
    /**
     * 剩余电量
     */
    private Integer soc;
    /**
     * 电费
     */
    private BigDecimal electricityFee;
    /**
     * 电费显示
     */
    private String electricityFeeDisplay;
    /**
     * 服务费
     */
    private BigDecimal serviceCharge;
    /**
     * 服务费显示
     */
    private String serviceChargeDisplay;
    /**
     * 总金额
     */
    private BigDecimal totalAmount;
    /**
     * 总金额显示
     */
    private String totalAmountDisplay;
    /**
     * 充电开始时间
     */
    private LocalDateTime startTime;
    /**
     * 充电结束时间
     */
    private LocalDateTime endTime;
    /**
     * 充电时长
     */
    private Long chargeTime;
    /**
     * 是否ETC支付
     */
    private String etcPay;
    /**
     * 是否ETC支付显示
     */
    private String etcPayDisplay;
    /**
     * 支付状态
     */
    private Integer payStatus;
    /**
     * 支付状态显示
     */
    private String payStatusDisplay;


    public void freeData() {
        this.orderId = null;
        this.chargeCapacity = null;
        this.chargeCapacityDisplay = null;
        this.state = null;
        this.soc = null;
        this.stateDisplay = null;
        this.electricityFee = null;
        this.electricityFeeDisplay = null;
        this.serviceCharge = null;
        this.serviceChargeDisplay = null;
        this.totalAmount = null;
        this.totalAmountDisplay = null;
        this.startTime = null;
        this.endTime = null;
        this.chargeTime = null;
        this.etcPay = null;
        this.etcPayDisplay = null;
        this.payStatus = null;
        this.payStatusDisplay = null;
    }
}